package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @version 1.0
 * @description 说明
 * @package com.zzyl.mapper
 */
@Mapper
public interface NursingProjectMapper {

    /**
     * 护理项目分页查询
     * @param name
     * @param status
     * @return
     */
    Page<NursingProject> selectPage(String name, Integer status);

    /**
     * 新增护理项目
     * @param nursingProject
     */
    void insert(NursingProject nursingProject);

    /**
     * 通过id查询
     * @param id
     * @return
     */
    NursingProject getById(Long id);

    /**
     * 更新
     * @param nursingProject
     */
    void updateById(NursingProject nursingProject);

    /**
     * 启禁用护理项目
     * @param id
     * @param status
     */
    void enable(Long id, Integer status);

    /**
     * 通过id删除护理项目
     * @param id
     */
    void deleteById(Long id);
/**
 * 查询所有
 * */
@Select("select * from nursing_project ")
    List<NursingProject> findAll();
}
